package com.bookstore.dao;

import com.bookstore.bean.ShoppingAddress;

import java.util.List;

public interface ShoppingAddressDao {
    //6.收货地址管理：新增收货地址、删除收货地址、修改收货地址、查看收货地址、设置默认收货地址
    //新增收货地址
    void insertShoppingAddress(ShoppingAddress shoppingAddress);
    //删除收货地址 根据用户ID和用户地址删除
    void deleteShoppingAddress(ShoppingAddress shoppingAddress);
    //修改收货地址
    void updateShoppingAddress(ShoppingAddress shoppingAddress);
    //查看收货地址
    List<ShoppingAddress> selectShoppingAddress(ShoppingAddress shoppingAddress);
    // 设置默认收货地址
    void setDefault(ShoppingAddress shoppingAddress);
}
